package com.fita.admin.handler.support;

import com.demo2do.core.persistence.GenericJdbcSupport;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
/**
 * 
 * @author sjh
 *
 */
@Component("fitaJdbcSupport")
public class FitaJdbcSupport extends GenericJdbcSupport{

	   /**
     * call origin query
     * 
     * @param sentence
     * @param parameters
     * @param rowMapper
     * @return
     */
    public List<Map<String, Object>> queryForList(String sentence, Map<String, Object> parameters, RowMapper<Map<String, Object>> rowMapper) {
        return getJdbcTemplate().query(sentence, parameters, rowMapper);
    }
}
